package com.example.controller;

import com.example.result.ReturnResult;
import com.example.service.IPartVersionService;
import com.example.vo.PartVersionQueryParamVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/partVersion")
@CrossOrigin
public class PartVersionController {

    @Autowired
    private IPartVersionService partVersionService;

    @PostMapping("/query")
    public ReturnResult query(@RequestBody PartVersionQueryParamVO partVersionQueryParamVO){
        return  partVersionService.query(partVersionQueryParamVO);
    }
}
